/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DAO;

import Negocio.Aluno;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import org.prevayler.Transaction;

/**
 *
 * @author jeferson
 */
public class AddAlunos implements Transaction, Serializable{
    
    private ArrayList<Aluno> alunos;

    public AddAlunos(ArrayList<Aluno> alunos) {
        this.alunos = alunos;
    }
    
    @Override
    public void executeOn(Object o, Date date) {
        ((Data)o).addAlunos(alunos);
    }
}
